<!-- 搜索框及工具条 -->
<div class="c-head-box">
    <form method="get" action="{:Url('small_apply_list')}">
        <ul>
            <li class="c-head-search">
                <!-- 搜索条件 -->
                <ul>
                    <li><span>用户编号：</span><input type="text" name="user_id" value="{$user_id}"/></li>
                    <li><span>小贷产品编号：</span><input type="text" name="small_product_id" value="{$small_product_id}"/></li>
                    <li style="width: 100%"><span>状态：</span>{:widget('common/Select/select',array('small_apply_status','small_apply_status',$small_apply_status))}</li>
                    <li style="width: 100%"><span>所在城市：</span>{:widget('common/Select/select_group',array('area',array($area_list,"area_id","acronym","parent_id"),0,$area))}</li>
                </ul>
            </li>
            <li class="c-head-button">
                <!-- 操作按钮 -->
                <div class="fr"><input type="submit" class="but_blue" value="搜索"></div>
            </li>
        </ul>
    </form>
</div>

<!--用户列表-->
<div class="lists-tab-cont">
    <div class="lists-table">
        <table class="pointer" cellpadding="0" cellspacing="0" border="0">
            <thead>
                <tr>
                    <th style="width: 5%;" class="tabSort-header"><a class="tabSort-header-inner"><p>申请编号</p></a></th>
                    <th style="width: 5%;" class="tabSort-header"><a class="tabSort-header-inner"><p>用户编号</p></a></th>
                    <th style="width: 6%;" class="tabSort-header"><a class="tabSort-header-inner"><p>用户名称</p></a></th>
                    <th style="width: 8%;" class="tabSort-header"><a class="tabSort-header-inner"><p>小贷产品银行编号</p></a></th>
                    <th style="width: 12%;" class="tabSort-header"><a class="tabSort-header-inner"><p>小贷产品名称</p></a></th>
                    <th style="width: 8%;" class="tabSort-header"><a class="tabSort-header-inner"><p>所在省份</p></a></th>
                    <th style="width: 8%;" class="tabSort-header"><a class="tabSort-header-inner"><p>所在城市</p></a></th>
                    <th style="width: 10%;" class="tabSort-header"><a class="tabSort-header-inner"><p>返佣金额</p></a></th>
                    <th style="width: 6%;" class="tabSort-header"><a class="tabSort-header-inner"><p>状态</p></a></th>
                    <th style="width: 10%;" class="tabSort-header"><a class="tabSort-header-inner"><p>所属代理商</p></a></th>
                    <th style="width: 10%;" class="tabSort-header"><a class="tabSort-header-inner"><p>所属业务员</p></a></th>
                    <th class="tabSort-header"><a class="tabSort-header-inner"><p>操作</p></a></th>
                </tr>
            </thead>
            <tbody>
                {foreach name="small_apply_list" item="info"}
                    <tr>
                        <td>{$info.small_apply_id}</td>
                        <td>{$info.user_id}</td>
                        <td>{:widget('common/Name/user',array($info["user_id"]))}</td>
                        <td>{$info.small_product_id}</td>
                        <td>{:widget('common/Name/loan',array($info["small_product_id"]))}</td>
                        <td>{:widget('common/Name/area',array($info["province_id"]))}</td>
                        <td>{:widget('common/Name/area',array($info["city_id"]))}</td>
                        <td><font color="red">￥{$info.brokerage_money|number_format=###,2}元</font></td>
                        <td>{:widget('common/Color/color',array('small_apply_status',$info["small_apply_status"]))}</td>
                        <td>{:widget('common/Name/agent',array($info["agent_id"]))}</td>
                        <td>{:widget('common/Name/agent_admin',array($info["agent_admin_id"]))}</td>
                        <td>
                            <a data-type="info-win" data-src="{:Url('small_apply_info',array('small_apply_id'=>$info['small_apply_id']))}" data-title="详情" data-width="50%" data-height="50%" class="blue">详情</a>
                            <a data-type="info-win" data-src="{:Url('small_apply_log',array('small_apply_id'=>$info['small_apply_id']))}" data-title="日志" data-width="80%" data-height="80%" class="blue">日志</a>
                        </td>
                    </tr>
                {/foreach}
            </tbody>
        </table>
    </div>

    <!-- 翻页模板 -->
    <div class="page">
        {$Think.config.page_html}
    </div>
</div>
